#include "Pig.h"
#include "GameIO.h"
#include "MacroDef.h"

Pig :: Pig()
{
	x = 80;
	y = 40;
	vx = SCENE_VX;
	vy = 0;

	box.x = x; box.y = y;
	box.w = SIZEX; box.h = SIZEY;

	pigAImg = GameIO :: loadImg("pics\\pig1.bmp");
	SDL_SetColorKey(pigAImg, SDL_RLEACCEL|SDL_SRCCOLORKEY, SDL_MapRGB(pigAImg->format, 250, 250, 250));

	pigBImg = GameIO :: loadImg("pics\\pig2.bmp");
	SDL_SetColorKey(pigBImg, SDL_RLEACCEL|SDL_SRCCOLORKEY, SDL_MapRGB(pigBImg->format, 250, 250, 250));
}